const router = require('express').Router()
const path = require('path')
const User = require('../../models/user')

router.get('/', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/index.html'))
})

router.get('/category', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/category.html'))
})

router.get('/login', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/login.html'))
})

router.get('/index', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/index.html'))
})

router.get('/reg', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/reg.html'))
})

router.get('/setting', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/setting.html'))
})

router.get('/search', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/search.html'))
})
router.get('/search_result', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/search-result.html'))
})
router.get('/shoppingCurrent', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/shoppingCurrent.html'))
})
router.get('/shoppingCar', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/shoppingCar.html'))
})

router.get('/shoppingUpdate', (req, res) => {
    res.sendFile(path.join(__dirname + '/../../public/mobile/shoppingUpdate.html'))
})


module.exports = router